<?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */
$this->pageTitle=Yii::app()->name . ' - Login';
$this->breadcrumbs=array(
	'Login',
);
?>
<div class="container">
   <div class="top"></div>
   <div class="form">
   <?php $form=$this->beginWidget('CActiveForm', array(
   	'id'=>'login-form',
      
   	'enableClientValidation'=>true,
   	'clientOptions'=>array(
   		'validateOnSubmit'=>true,
   	),
      'htmlOptions' => array(
         'class' => 'user-form',
      )
   )); ?>
   <div class="caption relative text-center">
      <em class="arrow half-arrow-down sprite absolute medium-left"></em>
      <i class="sprite icon-key absolute"></i>
      <span class="font-opensans bold">Đăng nhập</span>
      <i class="sprite icon-user absolute"></i>
      <em class="arrow half-arrow-down sprite absolute medium-right"></em>
   </div>
   <div class="control-container">
   	<div class="left">
         <div class="row">
      		<?php echo $form->labelEx($model,'username'); ?>
      		<?php echo $form->error($model,'username'); ?>
            <?php echo $form->textField($model,'username'); ?>
      		
      	</div>
      
      	<div class="row">
      		<?php echo $form->labelEx($model,'password'); ?>
      		<?php echo $form->error($model,'password'); ?>
            <?php echo $form->passwordField($model,'password'); ?>
      	</div>
      
      	<div class="row inline rememberMe">
      		<?php echo $form->checkBox($model,'rememberMe'); ?>
      		<?php echo $form->label($model,'rememberMe'); ?>
      		<?php echo $form->error($model,'rememberMe'); ?>
      	</div>
      
      	<div class="row buttons">
      		<?php echo CHtml::submitButton('Đăng nhập',array('class' => 'btn btn-success')); ?>
      	</div>
      </div>
      <div class="link-reg text-center">
         <p>Nếu bạn chưa có tài khoản</p>
         <a href="/dang-ky" class="btn btn-primary">Đăng ký</a>
      </div>
   </div>
   <?php $this->endWidget(); ?>   
   </div><!-- form -->
</div>
